<html>
  <head>
  <style>
  body>div {
    margin: 20px 35px;
    float:left;
  }
  </style>
  <script type="text/javascript" src="lib/jquery.min.js"></script>    
  <script type="text/javascript" src="lib/jquery-barcode-last.js"></script>  
  <script type="text/javascript">

    function get_action() {
      $.get("scan.php?a=" + document.forms["frm"]["barcode"].value, function(data) {
        $("#result").html([data.slice(0,16), "<br/>", data.slice(16)].join('')); 
        $('#barcode').val('');
      });
       
      return false;
    }
  </script>
</head>
<body>
  <form id="frm" onSubmit="return get_action()">
    Barcode: <input type="text" id="barcode" name="barcode" value=""><br>
  </form>
  <pre id='result'>
  </pre>
</body>
</html>
